import Vue from "vue";
import Vuex from "vuex";
import User from "./User";
import Category from "./Category";
import Cart from "./Cart";
import vuexpersistedstate from "vuex-persistedstate";
Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    User,
    Category,
    Cart
  },
  plugins: [vuexpersistedstate()],
});
